﻿@{
    ViewBag.Title = "TestEntryItemList";    
}


<div id="test1">
    <div class="header">
        <div class="caption"></div>
    </div>
    <a href="#" class="prevPage">Prev</a>
    <a href="#" class="nextPage">Next</a>
    <a href="#" class="displayMore">DisplayMore</a>
    <ul class="entryList"></ul>
</div>

@section scripts {
    
    @CoffeeScripts.Render("~/CoffeeScripts/shared/coffee")
    @CoffeeScripts.Render("~/CoffeeScripts/models/coffee")
    @CoffeeScripts.Render("~/CoffeeScripts/controllers/base/coffee")
    @CoffeeScripts.Render("~/CoffeeScripts/controllers/coffee")
    @Scripts.Render("~/Scripts/coffee-script.js", "~/bundles/waypoint")


    <script type="text/x-jquery-tmpl" id="entryItemTemplate">
        <a href="#" rel="external" class="changePath">
            <image class="ul-li-icon" src="${links.typeInfo.url}?rel=smallIcon" />
            ${label}
        </a>
    </script>

    <script type="text/coffeescript">
_file1path = "/CoffeeScripts/tests/data/json/1.txt"
_arch1path = "/CoffeeScripts/tests/data/json/3.txt"
_dir1path = "/CoffeeScripts/tests/data/json/2.txt"
_elist1path = "/CoffeeScripts/tests/data/json/list.txt"
_elist1page1path = "/CoffeeScripts/tests/data/json/listPage1.txt";
_elist1page2path = "/CoffeeScripts/tests/data/json/listPage2.txt";

_eilist1 = new Cofe.EntryListView({
      el : $("#test1")      
    })
          
_eilist1.changePath(_elist1page1path)
    </script>
}